package cn.ccit.iservers;

import java.util.ArrayList;
import java.util.List;

import cn.ccit.entites.record.DishOrderRecord;
import cn.ccit.entites.record.DishOrderRecordItem;
/**
 * 
 * @author wanghao
 * 点菜记录表（临时表）
 */
public interface IDishOrderRecordServers {
	public boolean addDishOrderRecord(DishOrderRecord doRecord);//添加记录
	public boolean removeDishOrderRecord(DishOrderRecord doRecord);//移除
	public boolean changeDishOrderRecordInfo(DishOrderRecord doRecord);//修改记录
	public List<DishOrderRecord> getSomeDishOrderRecords(int start,int limit);//获取一定条数记录
	public DishOrderRecord searchDishOrderRecordByID(int id);//通过id搜索
	public List<DishOrderRecord> searchDishOrderRecordByYear(String year);//通过年
	public List<DishOrderRecord> searchDishOrderRecordByMonth(String month);//通过月
	public List<DishOrderRecord> searchDishOrderRecordByDate(String date);//通过日
	public Long orderDish(DishOrderRecord doRecord,String itemList);//点菜
	public List<DishOrderRecord> searchDishOrderRecordByTid(DishOrderRecord doRecord);//通过餐桌id搜索
	public List<DishOrderRecord> searchDishOrderRecordBySerialsNumber(Long serialsNumber);//序列号
	public boolean payForOrder(Long serialsNumber);
}
